home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / shistory / nsISHEntry.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  29KB  |  629 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISHEntry.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISHEntry_h__
  6. #define __gen_nsISHEntry_h__
  7.  
  8.  
  9. #ifndef __gen_nsIHistoryEntry_h__
  10. #include "nsIHistoryEntry.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsILayoutHistoryState; /* forward declaration */
  18.  
  19. class nsIContentViewer; /* forward declaration */
  20.  
  21. class nsIURI; /* forward declaration */
  22.  
  23. class nsIInputStream; /* forward declaration */
  24.  
  25. class nsIDocShellTreeItem; /* forward declaration */
  26.  
  27. class nsISupportsArray; /* forward declaration */
  28.  
  29. struct nsRect;
  30.  
  31. /* starting interface:    nsISHEntry */
  32. #define NS_ISHENTRY_IID_STR "542a98b9-2889-4922-aaf4-02b6056f4136"
  33.  
  34. #define NS_ISHENTRY_IID \
  35.   {0x542a98b9, 0x2889, 0x4922, \
  36.     { 0xaa, 0xf4, 0x02, 0xb6, 0x05, 0x6f, 0x41, 0x36 }}
  37.  
  38. class NS_NO_VTABLE nsISHEntry : public nsIHistoryEntry {
  39.  public: 
  40.  
  41.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISHENTRY_IID)
  42.  
  43.   /** URI for the document */
  44.   /* void setURI (in nsIURI aURI); */
  45.   NS_IMETHOD SetURI(nsIURI *aURI) = 0;
  46.  
  47.   /** Referrer URI */
  48.   /* attribute nsIURI referrerURI; */
  49.   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) = 0;
  50.   NS_IMETHOD SetReferrerURI(nsIURI * aReferrerURI) = 0;
  51.  
  52.   /** Content viewer, for fast restoration of presentation */
  53.   /* attribute nsIContentViewer contentViewer; */
  54.   NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) = 0;
  55.   NS_IMETHOD SetContentViewer(nsIContentViewer * aContentViewer) = 0;
  56.  
  57.   /** Whether the content viewer is marked "sticky" */
  58.   /* attribute boolean sticky; */
  59.   NS_IMETHOD GetSticky(PRBool *aSticky) = 0;
  60.   NS_IMETHOD SetSticky(PRBool aSticky) = 0;
  61.  
  62.   /** Saved state of the global window object */
  63.   /* attribute nsISupports windowState; */
  64.   NS_IMETHOD GetWindowState(nsISupports * *aWindowState) = 0;
  65.   NS_IMETHOD SetWindowState(nsISupports * aWindowState) = 0;
  66.  
  67.   /**
  68.      * Saved position and dimensions of the content viewer; we must adjust the
  69.      * root view's widget accordingly if this has changed when the presentation
  70.      * is restored.
  71.      */
  72.   /* [noscript] void getViewerBounds (in nsRect bounds); */
  73.   NS_IMETHOD GetViewerBounds(nsRect & bounds) = 0;
  74.  
  75.   /* [noscript] void setViewerBounds ([const] in nsRect bounds); */
  76.   NS_IMETHOD SetViewerBounds(const nsRect & bounds) = 0;
  77.  
  78.   /**
  79.      * Saved child docshells corresponding to contentViewer.  There are weak
  80.      * references since it's assumed that the content viewer's document has
  81.      * an owning reference to the subdocument for each shell.  The child shells
  82.      * are restored as children of the parent docshell, in this order, when the
  83.      * parent docshell restores a saved presentation.
  84.      */
  85. /** Append a child shell to the end of our list. */
  86.   /* void addChildShell (in nsIDocShellTreeItem shell); */
  87.   NS_IMETHOD AddChildShell(nsIDocShellTreeItem *shell) = 0;
  88.  
  89.   /**
  90.      * Get the child shell at |index|; returns null if |index| is out of bounds.
  91.      */
  92.   /* nsIDocShellTreeItem childShellAt (in long index); */
  93.   NS_IMETHOD ChildShellAt(PRInt32 index, nsIDocShellTreeItem **_retval) = 0;
  94.  
  95.   /**
  96.      * Clear the child shell list.
  97.      */
  98.   /* void clearChildShells (); */
  99.   NS_IMETHOD ClearChildShells(void) = 0;
  100.  
  101.   /** Saved refresh URI list for the content viewer */
  102.   /* attribute nsISupportsArray refreshURIList; */
  103.   NS_IMETHOD GetRefreshURIList(nsISupportsArray * *aRefreshURIList) = 0;
  104.   NS_IMETHOD SetRefreshURIList(nsISupportsArray * aRefreshURIList) = 0;
  105.  
  106.   /**
  107.      * Ensure that the cached presentation members are self-consistent.
  108.      * If either |contentViewer| or |windowState| are null, then all of the
  109.      * following members are cleared/reset:
  110.      *  contentViewer, sticky, windowState, viewerBounds, childShells,
  111.      *  refreshURIList.
  112.      */
  113.   /* void syncPresentationState (); */
  114.   NS_IMETHOD SyncPresentationState(void) = 0;
  115.  
  116.   /** Title for the document */
  117.   /* void setTitle (in AString aTitle); */
  118.   NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  119.  
  120.   /** Post Data for the document */
  121.   /* attribute nsIInputStream postData; */
  122.   NS_IMETHOD GetPostData(nsIInputStream * *aPostData) = 0;
  123.   NS_IMETHOD SetPostData(nsIInputStream * aPostData) = 0;
  124.  
  125.   /** LayoutHistoryState for scroll position and form values */
  126.   /* attribute nsILayoutHistoryState layoutHistoryState; */
  127.   NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) = 0;
  128.   NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState) = 0;
  129.  
  130.   /** parent of this entry */
  131.   /* attribute nsISHEntry parent; */
  132.   NS_IMETHOD GetParent(nsISHEntry * *aParent) = 0;
  133.   NS_IMETHOD SetParent(nsISHEntry * aParent) = 0;
  134.  
  135.   /**
  136.      * The loadType for this entry. This is typically loadHistory except
  137.      * when reload is pressed, it has the appropriate reload flag
  138.      */
  139.   /* attribute unsigned long loadType; */
  140.   NS_IMETHOD GetLoadType(PRUint32 *aLoadType) = 0;
  141.   NS_IMETHOD SetLoadType(PRUint32 aLoadType) = 0;
  142.  
  143.   /**
  144.      * An ID to help identify this entry from others during
  145.      * subframe navigation
  146.      */
  147.   /* attribute unsigned long ID; */
  148.   NS_IMETHOD GetID(PRUint32 *aID) = 0;
  149.   NS_IMETHOD SetID(PRUint32 aID) = 0;
  150.  
  151.   /**
  152.      * pageIdentifier is an integer that should be the same for two entries
  153.      * attached to the same docshell only if the two entries are entries for
  154.      * the same page in the sense that one could go from the state represented
  155.      * by one to the state represented by the other simply by scrolling (so the
  156.      * entries are separated by an anchor traversal or a subframe navigation in
  157.      * some other frame).
  158.      */
  159.   /* attribute unsigned long pageIdentifier; */
  160.   NS_IMETHOD GetPageIdentifier(PRUint32 *aPageIdentifier) = 0;
  161.   NS_IMETHOD SetPageIdentifier(PRUint32 aPageIdentifier) = 0;
  162.  
  163.   /** attribute to set and get the cache key for the entry */
  164.   /* attribute nsISupports cacheKey; */
  165.   NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) = 0;
  166.   NS_IMETHOD SetCacheKey(nsISupports * aCacheKey) = 0;
  167.  
  168.   /** attribute to indicate whether layoutHistoryState should be saved */
  169.   /* attribute boolean saveLayoutStateFlag; */
  170.   NS_IMETHOD GetSaveLayoutStateFlag(PRBool *aSaveLayoutStateFlag) = 0;
  171.   NS_IMETHOD SetSaveLayoutStateFlag(PRBool aSaveLayoutStateFlag) = 0;
  172.  
  173.   /** attribute to indicate whether the page is already expired in cache */
  174.   /* attribute boolean expirationStatus; */
  175.   NS_IMETHOD GetExpirationStatus(PRBool *aExpirationStatus) = 0;
  176.   NS_IMETHOD SetExpirationStatus(PRBool aExpirationStatus) = 0;
  177.  
  178.   /**
  179.      * attribute to indicate the content-type of the document that this
  180.      * is a session history entry for
  181.      */
  182.   /* attribute ACString contentType; */
  183.   NS_IMETHOD GetContentType(nsACString & aContentType) = 0;
  184.   NS_IMETHOD SetContentType(const nsACString & aContentType) = 0;
  185.  
  186.   /** Set/Get scrollers' positon in anchored pages */
  187.   /* void setScrollPosition (in long x, in long y); */
  188.   NS_IMETHOD SetScrollPosition(PRInt32 x, PRInt32 y) = 0;
  189.  
  190.   /* void getScrollPosition (out long x, out long y); */
  191.   NS_IMETHOD GetScrollPosition(PRInt32 *x, PRInt32 *y) = 0;
  192.  
  193.   /** Additional ways to create an entry */
  194.   /* void create (in nsIURI URI, in AString title, in nsIInputStream inputStream, in nsILayoutHistoryState layoutHistoryState, in nsISupports cacheKey, in ACString contentType); */
  195.   NS_IMETHOD Create(nsIURI *URI, const nsAString & title, nsIInputStream *inputStream, nsILayoutHistoryState *layoutHistoryState, nsISupports *cacheKey, const nsACString & contentType) = 0;
  196.  
  197.   /* nsISHEntry clone (); */
  198.   NS_IMETHOD Clone(nsISHEntry **_retval) = 0;
  199.  
  200.   /** Attribute that indicates if this entry is for a subframe navigation */
  201.   /* void setIsSubFrame (in boolean aFlag); */
  202.   NS_IMETHOD SetIsSubFrame(PRBool aFlag) = 0;
  203.  
  204.   /** Return any content viewer present in or below this node in the
  205.         nsSHEntry tree.  This will differ from contentViewer in the case
  206.         where a child nsSHEntry has the content viewer for this tree. */
  207.   /* nsIContentViewer getAnyContentViewer (out nsISHEntry ownerEntry); */
  208.   NS_IMETHOD GetAnyContentViewer(nsISHEntry **ownerEntry, nsIContentViewer **_retval) = 0;
  209.  
  210. };
  211.  
  212. /* Use this macro when declaring classes that implement this interface. */
  213. #define NS_DECL_NSISHENTRY \
  214.   NS_IMETHOD SetURI(nsIURI *aURI); \
  215.   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI); \
  216.   NS_IMETHOD SetReferrerURI(nsIURI * aReferrerURI); \
  217.   NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer); \
  218.   NS_IMETHOD SetContentViewer(nsIContentViewer * aContentViewer); \
  219.   NS_IMETHOD GetSticky(PRBool *aSticky); \
  220.   NS_IMETHOD SetSticky(PRBool aSticky); \
  221.   NS_IMETHOD GetWindowState(nsISupports * *aWindowState); \
  222.   NS_IMETHOD SetWindowState(nsISupports * aWindowState); \
  223.   NS_IMETHOD GetViewerBounds(nsRect & bounds); \
  224.   NS_IMETHOD SetViewerBounds(const nsRect & bounds); \
  225.   NS_IMETHOD AddChildShell(nsIDocShellTreeItem *shell); \
  226.   NS_IMETHOD ChildShellAt(PRInt32 index, nsIDocShellTreeItem **_retval); \
  227.   NS_IMETHOD ClearChildShells(void); \
  228.   NS_IMETHOD GetRefreshURIList(nsISupportsArray * *aRefreshURIList); \
  229.   NS_IMETHOD SetRefreshURIList(nsISupportsArray * aRefreshURIList); \
  230.   NS_IMETHOD SyncPresentationState(void); \
  231.   NS_IMETHOD SetTitle(const nsAString & aTitle); \
  232.   NS_IMETHOD GetPostData(nsIInputStream * *aPostData); \
  233.   NS_IMETHOD SetPostData(nsIInputStream * aPostData); \
  234.   NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState); \
  235.   NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState); \
  236.   NS_IMETHOD GetParent(nsISHEntry * *aParent); \
  237.   NS_IMETHOD SetParent(nsISHEntry * aParent); \
  238.   NS_IMETHOD GetLoadType(PRUint32 *aLoadType); \
  239.   NS_IMETHOD SetLoadType(PRUint32 aLoadType); \
  240.   NS_IMETHOD GetID(PRUint32 *aID); \
  241.   NS_IMETHOD SetID(PRUint32 aID); \
  242.   NS_IMETHOD GetPageIdentifier(PRUint32 *aPageIdentifier); \
  243.   NS_IMETHOD SetPageIdentifier(PRUint32 aPageIdentifier); \
  244.   NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey); \
  245.   NS_IMETHOD SetCacheKey(nsISupports * aCacheKey); \
  246.   NS_IMETHOD GetSaveLayoutStateFlag(PRBool *aSaveLayoutStateFlag); \
  247.   NS_IMETHOD SetSaveLayoutStateFlag(PRBool aSaveLayoutStateFlag); \
  248.   NS_IMETHOD GetExpirationStatus(PRBool *aExpirationStatus); \
  249.   NS_IMETHOD SetExpirationStatus(PRBool aExpirationStatus); \
  250.   NS_IMETHOD GetContentType(nsACString & aContentType); \
  251.   NS_IMETHOD SetContentType(const nsACString & aContentType); \
  252.   NS_IMETHOD SetScrollPosition(PRInt32 x, PRInt32 y); \
  253.   NS_IMETHOD GetScrollPosition(PRInt32 *x, PRInt32 *y); \
  254.   NS_IMETHOD Create(nsIURI *URI, const nsAString & title, nsIInputStream *inputStream, nsILayoutHistoryState *layoutHistoryState, nsISupports *cacheKey, const nsACString & contentType); \
  255.   NS_IMETHOD Clone(nsISHEntry **_retval); \
  256.   NS_IMETHOD SetIsSubFrame(PRBool aFlag); \
  257.   NS_IMETHOD GetAnyContentViewer(nsISHEntry **ownerEntry, nsIContentViewer **_retval); 
  258.  
  259. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  260. #define NS_FORWARD_NSISHENTRY(_to) \
  261.   NS_IMETHOD SetURI(nsIURI *aURI) { return _to SetURI(aURI); } \
  262.   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) { return _to GetReferrerURI(aReferrerURI); } \
  263.   NS_IMETHOD SetReferrerURI(nsIURI * aReferrerURI) { return _to SetReferrerURI(aReferrerURI); } \
  264.   NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) { return _to GetContentViewer(aContentViewer); } \
  265.   NS_IMETHOD SetContentViewer(nsIContentViewer * aContentViewer) { return _to SetContentViewer(aContentViewer); } \
  266.   NS_IMETHOD GetSticky(PRBool *aSticky) { return _to GetSticky(aSticky); } \
  267.   NS_IMETHOD SetSticky(PRBool aSticky) { return _to SetSticky(aSticky); } \
  268.   NS_IMETHOD GetWindowState(nsISupports * *aWindowState) { return _to GetWindowState(aWindowState); } \
  269.   NS_IMETHOD SetWindowState(nsISupports * aWindowState) { return _to SetWindowState(aWindowState); } \
  270.   NS_IMETHOD GetViewerBounds(nsRect & bounds) { return _to GetViewerBounds(bounds); } \
  271.   NS_IMETHOD SetViewerBounds(const nsRect & bounds) { return _to SetViewerBounds(bounds); } \
  272.   NS_IMETHOD AddChildShell(nsIDocShellTreeItem *shell) { return _to AddChildShell(shell); } \
  273.   NS_IMETHOD ChildShellAt(PRInt32 index, nsIDocShellTreeItem **_retval) { return _to ChildShellAt(index, _retval); } \
  274.   NS_IMETHOD ClearChildShells(void) { return _to ClearChildShells(); } \
  275.   NS_IMETHOD GetRefreshURIList(nsISupportsArray * *aRefreshURIList) { return _to GetRefreshURIList(aRefreshURIList); } \
  276.   NS_IMETHOD SetRefreshURIList(nsISupportsArray * aRefreshURIList) { return _to SetRefreshURIList(aRefreshURIList); } \
  277.   NS_IMETHOD SyncPresentationState(void) { return _to SyncPresentationState(); } \
  278.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  279.   NS_IMETHOD GetPostData(nsIInputStream * *aPostData) { return _to GetPostData(aPostData); } \
  280.   NS_IMETHOD SetPostData(nsIInputStream * aPostData) { return _to SetPostData(aPostData); } \
  281.   NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) { return _to GetLayoutHistoryState(aLayoutHistoryState); } \
  282.   NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState) { return _to SetLayoutHistoryState(aLayoutHistoryState); } \
  283.   NS_IMETHOD GetParent(nsISHEntry * *aParent) { return _to GetParent(aParent); } \
  284.   NS_IMETHOD SetParent(nsISHEntry * aParent) { return _to SetParent(aParent); } \
  285.   NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return _to GetLoadType(aLoadType); } \
  286.   NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return _to SetLoadType(aLoadType); } \
  287.   NS_IMETHOD GetID(PRUint32 *aID) { return _to GetID(aID); } \
  288.   NS_IMETHOD SetID(PRUint32 aID) { return _to SetID(aID); } \
  289.   NS_IMETHOD GetPageIdentifier(PRUint32 *aPageIdentifier) { return _to GetPageIdentifier(aPageIdentifier); } \
  290.   NS_IMETHOD SetPageIdentifier(PRUint32 aPageIdentifier) { return _to SetPageIdentifier(aPageIdentifier); } \
  291.   NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) { return _to GetCacheKey(aCacheKey); } \
  292.   NS_IMETHOD SetCacheKey(nsISupports * aCacheKey) { return _to SetCacheKey(aCacheKey); } \
  293.   NS_IMETHOD GetSaveLayoutStateFlag(PRBool *aSaveLayoutStateFlag) { return _to GetSaveLayoutStateFlag(aSaveLayoutStateFlag); } \
  294.   NS_IMETHOD SetSaveLayoutStateFlag(PRBool aSaveLayoutStateFlag) { return _to SetSaveLayoutStateFlag(aSaveLayoutStateFlag); } \
  295.   NS_IMETHOD GetExpirationStatus(PRBool *aExpirationStatus) { return _to GetExpirationStatus(aExpirationStatus); } \
  296.   NS_IMETHOD SetExpirationStatus(PRBool aExpirationStatus) { return _to SetExpirationStatus(aExpirationStatus); } \
  297.   NS_IMETHOD GetContentType(nsACString & aContentType) { return _to GetContentType(aContentType); } \
  298.   NS_IMETHOD SetContentType(const nsACString & aContentType) { return _to SetContentType(aContentType); } \
  299.   NS_IMETHOD SetScrollPosition(PRInt32 x, PRInt32 y) { return _to SetScrollPosition(x, y); } \
  300.   NS_IMETHOD GetScrollPosition(PRInt32 *x, PRInt32 *y) { return _to GetScrollPosition(x, y); } \
  301.   NS_IMETHOD Create(nsIURI *URI, const nsAString & title, nsIInputStream *inputStream, nsILayoutHistoryState *layoutHistoryState, nsISupports *cacheKey, const nsACString & contentType) { return _to Create(URI, title, inputStream, layoutHistoryState, cacheKey, contentType); } \
  302.   NS_IMETHOD Clone(nsISHEntry **_retval) { return _to Clone(_retval); } \
  303.   NS_IMETHOD SetIsSubFrame(PRBool aFlag) { return _to SetIsSubFrame(aFlag); } \
  304.   NS_IMETHOD GetAnyContentViewer(nsISHEntry **ownerEntry, nsIContentViewer **_retval) { return _to GetAnyContentViewer(ownerEntry, _retval); } 
  305.  
  306. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  307. #define NS_FORWARD_SAFE_NSISHENTRY(_to) \
  308.   NS_IMETHOD SetURI(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetURI(aURI); } \
  309.   NS_IMETHOD GetReferrerURI(nsIURI * *aReferrerURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrerURI(aReferrerURI); } \
  310.   NS_IMETHOD SetReferrerURI(nsIURI * aReferrerURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferrerURI(aReferrerURI); } \
  311.   NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentViewer(aContentViewer); } \
  312.   NS_IMETHOD SetContentViewer(nsIContentViewer * aContentViewer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentViewer(aContentViewer); } \
  313.   NS_IMETHOD GetSticky(PRBool *aSticky) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSticky(aSticky); } \
  314.   NS_IMETHOD SetSticky(PRBool aSticky) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSticky(aSticky); } \
  315.   NS_IMETHOD GetWindowState(nsISupports * *aWindowState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowState(aWindowState); } \
  316.   NS_IMETHOD SetWindowState(nsISupports * aWindowState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindowState(aWindowState); } \
  317.   NS_IMETHOD GetViewerBounds(nsRect & bounds) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewerBounds(bounds); } \
  318.   NS_IMETHOD SetViewerBounds(const nsRect & bounds) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetViewerBounds(bounds); } \
  319.   NS_IMETHOD AddChildShell(nsIDocShellTreeItem *shell) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChildShell(shell); } \
  320.   NS_IMETHOD ChildShellAt(PRInt32 index, nsIDocShellTreeItem **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChildShellAt(index, _retval); } \
  321.   NS_IMETHOD ClearChildShells(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearChildShells(); } \
  322.   NS_IMETHOD GetRefreshURIList(nsISupportsArray * *aRefreshURIList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRefreshURIList(aRefreshURIList); } \
  323.   NS_IMETHOD SetRefreshURIList(nsISupportsArray * aRefreshURIList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRefreshURIList(aRefreshURIList); } \
  324.   NS_IMETHOD SyncPresentationState(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncPresentationState(); } \
  325.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  326.   NS_IMETHOD GetPostData(nsIInputStream * *aPostData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPostData(aPostData); } \
  327.   NS_IMETHOD SetPostData(nsIInputStream * aPostData) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPostData(aPostData); } \
  328.   NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayoutHistoryState(aLayoutHistoryState); } \
  329.   NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLayoutHistoryState(aLayoutHistoryState); } \
  330.   NS_IMETHOD GetParent(nsISHEntry * *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
  331.   NS_IMETHOD SetParent(nsISHEntry * aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParent(aParent); } \
  332.   NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadType(aLoadType); } \
  333.   NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadType(aLoadType); } \
  334.   NS_IMETHOD GetID(PRUint32 *aID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetID(aID); } \
  335.   NS_IMETHOD SetID(PRUint32 aID) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetID(aID); } \
  336.   NS_IMETHOD GetPageIdentifier(PRUint32 *aPageIdentifier) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageIdentifier(aPageIdentifier); } \
  337.   NS_IMETHOD SetPageIdentifier(PRUint32 aPageIdentifier) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPageIdentifier(aPageIdentifier); } \
  338.   NS_IMETHOD GetCacheKey(nsISupports * *aCacheKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCacheKey(aCacheKey); } \
  339.   NS_IMETHOD SetCacheKey(nsISupports * aCacheKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCacheKey(aCacheKey); } \
  340.   NS_IMETHOD GetSaveLayoutStateFlag(PRBool *aSaveLayoutStateFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSaveLayoutStateFlag(aSaveLayoutStateFlag); } \
  341.   NS_IMETHOD SetSaveLayoutStateFlag(PRBool aSaveLayoutStateFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSaveLayoutStateFlag(aSaveLayoutStateFlag); } \
  342.   NS_IMETHOD GetExpirationStatus(PRBool *aExpirationStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpirationStatus(aExpirationStatus); } \
  343.   NS_IMETHOD SetExpirationStatus(PRBool aExpirationStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetExpirationStatus(aExpirationStatus); } \
  344.   NS_IMETHOD GetContentType(nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
  345.   NS_IMETHOD SetContentType(const nsACString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentType(aContentType); } \
  346.   NS_IMETHOD SetScrollPosition(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScrollPosition(x, y); } \
  347.   NS_IMETHOD GetScrollPosition(PRInt32 *x, PRInt32 *y) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollPosition(x, y); } \
  348.   NS_IMETHOD Create(nsIURI *URI, const nsAString & title, nsIInputStream *inputStream, nsILayoutHistoryState *layoutHistoryState, nsISupports *cacheKey, const nsACString & contentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(URI, title, inputStream, layoutHistoryState, cacheKey, contentType); } \
  349.   NS_IMETHOD Clone(nsISHEntry **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clone(_retval); } \
  350.   NS_IMETHOD SetIsSubFrame(PRBool aFlag) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsSubFrame(aFlag); } \
  351.   NS_IMETHOD GetAnyContentViewer(nsISHEntry **ownerEntry, nsIContentViewer **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnyContentViewer(ownerEntry, _retval); } 
  352.  
  353. #if 0
  354. /* Use the code below as a template for the implementation class for this interface. */
  355.  
  356. /* Header file */
  357. class nsSHEntry : public nsISHEntry
  358. {
  359. public:
  360.   NS_DECL_ISUPPORTS
  361.   NS_DECL_NSISHENTRY
  362.  
  363.   nsSHEntry();
  364.  
  365. private:
  366.   ~nsSHEntry();
  367.  
  368. protected:
  369.   /* additional members */
  370. };
  371.  
  372. /* Implementation file */
  373. NS_IMPL_ISUPPORTS1(nsSHEntry, nsISHEntry)
  374.  
  375. nsSHEntry::nsSHEntry()
  376. {
  377.   /* member initializers and constructor code */
  378. }
  379.  
  380. nsSHEntry::~nsSHEntry()
  381. {
  382.   /* destructor code */
  383. }
  384.  
  385. /* void setURI (in nsIURI aURI); */
  386. NS_IMETHODIMP nsSHEntry::SetURI(nsIURI *aURI)
  387. {
  388.     return NS_ERROR_NOT_IMPLEMENTED;
  389. }
  390.  
  391. /* attribute nsIURI referrerURI; */
  392. NS_IMETHODIMP nsSHEntry::GetReferrerURI(nsIURI * *aReferrerURI)
  393. {
  394.     return NS_ERROR_NOT_IMPLEMENTED;
  395. }
  396. NS_IMETHODIMP nsSHEntry::SetReferrerURI(nsIURI * aReferrerURI)
  397. {
  398.     return NS_ERROR_NOT_IMPLEMENTED;
  399. }
  400.  
  401. /* attribute nsIContentViewer contentViewer; */
  402. NS_IMETHODIMP nsSHEntry::GetContentViewer(nsIContentViewer * *aContentViewer)
  403. {
  404.     return NS_ERROR_NOT_IMPLEMENTED;
  405. }
  406. NS_IMETHODIMP nsSHEntry::SetContentViewer(nsIContentViewer * aContentViewer)
  407. {
  408.     return NS_ERROR_NOT_IMPLEMENTED;
  409. }
  410.  
  411. /* attribute boolean sticky; */
  412. NS_IMETHODIMP nsSHEntry::GetSticky(PRBool *aSticky)
  413. {
  414.     return NS_ERROR_NOT_IMPLEMENTED;
  415. }
  416. NS_IMETHODIMP nsSHEntry::SetSticky(PRBool aSticky)
  417. {
  418.     return NS_ERROR_NOT_IMPLEMENTED;
  419. }
  420.  
  421. /* attribute nsISupports windowState; */
  422. NS_IMETHODIMP nsSHEntry::GetWindowState(nsISupports * *aWindowState)
  423. {
  424.     return NS_ERROR_NOT_IMPLEMENTED;
  425. }
  426. NS_IMETHODIMP nsSHEntry::SetWindowState(nsISupports * aWindowState)
  427. {
  428.     return NS_ERROR_NOT_IMPLEMENTED;
  429. }
  430.  
  431. /* [noscript] void getViewerBounds (in nsRect bounds); */
  432. NS_IMETHODIMP nsSHEntry::GetViewerBounds(nsRect & bounds)
  433. {
  434.     return NS_ERROR_NOT_IMPLEMENTED;
  435. }
  436.  
  437. /* [noscript] void setViewerBounds ([const] in nsRect bounds); */
  438. NS_IMETHODIMP nsSHEntry::SetViewerBounds(const nsRect & bounds)
  439. {
  440.     return NS_ERROR_NOT_IMPLEMENTED;
  441. }
  442.  
  443. /* void addChildShell (in nsIDocShellTreeItem shell); */
  444. NS_IMETHODIMP nsSHEntry::AddChildShell(nsIDocShellTreeItem *shell)
  445. {
  446.     return NS_ERROR_NOT_IMPLEMENTED;
  447. }
  448.  
  449. /* nsIDocShellTreeItem childShellAt (in long index); */
  450. NS_IMETHODIMP nsSHEntry::ChildShellAt(PRInt32 index, nsIDocShellTreeItem **_retval)
  451. {
  452.     return NS_ERROR_NOT_IMPLEMENTED;
  453. }
  454.  
  455. /* void clearChildShells (); */
  456. NS_IMETHODIMP nsSHEntry::ClearChildShells()
  457. {
  458.     return NS_ERROR_NOT_IMPLEMENTED;
  459. }
  460.  
  461. /* attribute nsISupportsArray refreshURIList; */
  462. NS_IMETHODIMP nsSHEntry::GetRefreshURIList(nsISupportsArray * *aRefreshURIList)
  463. {
  464.     return NS_ERROR_NOT_IMPLEMENTED;
  465. }
  466. NS_IMETHODIMP nsSHEntry::SetRefreshURIList(nsISupportsArray * aRefreshURIList)
  467. {
  468.     return NS_ERROR_NOT_IMPLEMENTED;
  469. }
  470.  
  471. /* void syncPresentationState (); */
  472. NS_IMETHODIMP nsSHEntry::SyncPresentationState()
  473. {
  474.     return NS_ERROR_NOT_IMPLEMENTED;
  475. }
  476.  
  477. /* void setTitle (in AString aTitle); */
  478. NS_IMETHODIMP nsSHEntry::SetTitle(const nsAString & aTitle)
  479. {
  480.     return NS_ERROR_NOT_IMPLEMENTED;
  481. }
  482.  
  483. /* attribute nsIInputStream postData; */
  484. NS_IMETHODIMP nsSHEntry::GetPostData(nsIInputStream * *aPostData)
  485. {
  486.     return NS_ERROR_NOT_IMPLEMENTED;
  487. }
  488. NS_IMETHODIMP nsSHEntry::SetPostData(nsIInputStream * aPostData)
  489. {
  490.     return NS_ERROR_NOT_IMPLEMENTED;
  491. }
  492.  
  493. /* attribute nsILayoutHistoryState layoutHistoryState; */
  494. NS_IMETHODIMP nsSHEntry::GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState)
  495. {
  496.     return NS_ERROR_NOT_IMPLEMENTED;
  497. }
  498. NS_IMETHODIMP nsSHEntry::SetLayoutHistoryState(nsILayoutHistoryState * aLayoutHistoryState)
  499. {
  500.     return NS_ERROR_NOT_IMPLEMENTED;
  501. }
  502.  
  503. /* attribute nsISHEntry parent; */
  504. NS_IMETHODIMP nsSHEntry::GetParent(nsISHEntry * *aParent)
  505. {
  506.     return NS_ERROR_NOT_IMPLEMENTED;
  507. }
  508. NS_IMETHODIMP nsSHEntry::SetParent(nsISHEntry * aParent)
  509. {
  510.     return NS_ERROR_NOT_IMPLEMENTED;
  511. }
  512.  
  513. /* attribute unsigned long loadType; */
  514. NS_IMETHODIMP nsSHEntry::GetLoadType(PRUint32 *aLoadType)
  515. {
  516.     return NS_ERROR_NOT_IMPLEMENTED;
  517. }
  518. NS_IMETHODIMP nsSHEntry::SetLoadType(PRUint32 aLoadType)
  519. {
  520.     return NS_ERROR_NOT_IMPLEMENTED;
  521. }
  522.  
  523. /* attribute unsigned long ID; */
  524. NS_IMETHODIMP nsSHEntry::GetID(PRUint32 *aID)
  525. {
  526.     return NS_ERROR_NOT_IMPLEMENTED;
  527. }
  528. NS_IMETHODIMP nsSHEntry::SetID(PRUint32 aID)
  529. {
  530.     return NS_ERROR_NOT_IMPLEMENTED;
  531. }
  532.  
  533. /* attribute unsigned long pageIdentifier; */
  534. NS_IMETHODIMP nsSHEntry::GetPageIdentifier(PRUint32 *aPageIdentifier)
  535. {
  536.     return NS_ERROR_NOT_IMPLEMENTED;
  537. }
  538. NS_IMETHODIMP nsSHEntry::SetPageIdentifier(PRUint32 aPageIdentifier)
  539. {
  540.     return NS_ERROR_NOT_IMPLEMENTED;
  541. }
  542.  
  543. /* attribute nsISupports cacheKey; */
  544. NS_IMETHODIMP nsSHEntry::GetCacheKey(nsISupports * *aCacheKey)
  545. {
  546.     return NS_ERROR_NOT_IMPLEMENTED;
  547. }
  548. NS_IMETHODIMP nsSHEntry::SetCacheKey(nsISupports * aCacheKey)
  549. {
  550.     return NS_ERROR_NOT_IMPLEMENTED;
  551. }
  552.  
  553. /* attribute boolean saveLayoutStateFlag; */
  554. NS_IMETHODIMP nsSHEntry::GetSaveLayoutStateFlag(PRBool *aSaveLayoutStateFlag)
  555. {
  556.     return NS_ERROR_NOT_IMPLEMENTED;
  557. }
  558. NS_IMETHODIMP nsSHEntry::SetSaveLayoutStateFlag(PRBool aSaveLayoutStateFlag)
  559. {
  560.     return NS_ERROR_NOT_IMPLEMENTED;
  561. }
  562.  
  563. /* attribute boolean expirationStatus; */
  564. NS_IMETHODIMP nsSHEntry::GetExpirationStatus(PRBool *aExpirationStatus)
  565. {
  566.     return NS_ERROR_NOT_IMPLEMENTED;
  567. }
  568. NS_IMETHODIMP nsSHEntry::SetExpirationStatus(PRBool aExpirationStatus)
  569. {
  570.     return NS_ERROR_NOT_IMPLEMENTED;
  571. }
  572.  
  573. /* attribute ACString contentType; */
  574. NS_IMETHODIMP nsSHEntry::GetContentType(nsACString & aContentType)
  575. {
  576.     return NS_ERROR_NOT_IMPLEMENTED;
  577. }
  578. NS_IMETHODIMP nsSHEntry::SetContentType(const nsACString & aContentType)
  579. {
  580.     return NS_ERROR_NOT_IMPLEMENTED;
  581. }
  582.  
  583. /* void setScrollPosition (in long x, in long y); */
  584. NS_IMETHODIMP nsSHEntry::SetScrollPosition(PRInt32 x, PRInt32 y)
  585. {
  586.     return NS_ERROR_NOT_IMPLEMENTED;
  587. }
  588.  
  589. /* void getScrollPosition (out long x, out long y); */
  590. NS_IMETHODIMP nsSHEntry::GetScrollPosition(PRInt32 *x, PRInt32 *y)
  591. {
  592.     return NS_ERROR_NOT_IMPLEMENTED;
  593. }
  594.  
  595. /* void create (in nsIURI URI, in AString title, in nsIInputStream inputStream, in nsILayoutHistoryState layoutHistoryState, in nsISupports cacheKey, in ACString contentType); */
  596. NS_IMETHODIMP nsSHEntry::Create(nsIURI *URI, const nsAString & title, nsIInputStream *inputStream, nsILayoutHistoryState *layoutHistoryState, nsISupports *cacheKey, const nsACString & contentType)
  597. {
  598.     return NS_ERROR_NOT_IMPLEMENTED;
  599. }
  600.  
  601. /* nsISHEntry clone (); */
  602. NS_IMETHODIMP nsSHEntry::Clone(nsISHEntry **_retval)
  603. {
  604.     return NS_ERROR_NOT_IMPLEMENTED;
  605. }
  606.  
  607. /* void setIsSubFrame (in boolean aFlag); */
  608. NS_IMETHODIMP nsSHEntry::SetIsSubFrame(PRBool aFlag)
  609. {
  610.     return NS_ERROR_NOT_IMPLEMENTED;
  611. }
  612.  
  613. /* nsIContentViewer getAnyContentViewer (out nsISHEntry ownerEntry); */
  614. NS_IMETHODIMP nsSHEntry::GetAnyContentViewer(nsISHEntry **ownerEntry, nsIContentViewer **_retval)
  615. {
  616.     return NS_ERROR_NOT_IMPLEMENTED;
  617. }
  618.  
  619. /* End of implementation class template. */
  620. #endif
  621.  
  622. // {BFD1A791-AD9F-11d3-BDC7-0050040A9B44}
  623. #define NS_SHENTRY_CID \
  624. {0xbfd1a791, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
  625. #define NS_SHENTRY_CONTRACTID \
  626.     "@mozilla.org/browser/session-history-entry;1"
  627.  
  628. #endif /* __gen_nsISHEntry_h__ */
  629.